﻿@{
    Layout = null;
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>信息列表</title>
        @Styles.Render("~/Content/admin/base.css")
        @Styles.Render("~/Content/admin/form.css")
        @Scripts.Render("~/Scripts/admin/base.js")
        @Scripts.Render("~/Scripts/admin/form.js")
        @Scripts.Render("~/Scripts/admin/xmlData.js")
        @Scripts.Render("~/Scripts/admin/effect.js")
	</head>
	<body>
		<table class="editList" cellpadding="0" cellspacing="0">
			<tr>
				<td class="center" style="font-size: 16px;">
					买树网信息列表
				</td>
			</tr>
		</table>
		<s:form name="selectForm" namespace="/admin/news" action="newsList"	method="get">
			<table class="editForm" cellpadding="0" cellspacing="0">
				<tr>
					<td class="center">
						文章分类
					</td>
					<td class="fieldLable">
						<s:textfield name="newsType" />
					</td>
					<td class="center" rowspan="3">
						<input name="Submit" type="submit" value=" 查 询 " />
						&nbsp;&nbsp;&nbsp;
						<input name="reset" type="button" value=" 清 空 " />
					</td>
				</tr>
				<tr>
					<td class="center">
						文章标题
					</td>
					<td class="fieldLable">
						<s:textfield name="news.title" />
					</td>
				</tr>
				<tr>
					<td class="center">
						发布时间
					</td>
					<td>
						从
						<s:textfield name="startDate" />
						到
						<s:textfield name="endDate" />
					</td>
				</tr>
			</table>
		</s:form>
		<s:form name="contentForm" namespace="/admin/news" action="newsOrdersSave" method="post">
		<table id="tableList" class="editList" cellpadding="0" cellspacing="0">
			<tr>
				<td colspan="8">
					<a href="newsEdit.spage">添加新文章</a>
				</td>
			</tr>
			<tr class="head">
				<td class="center">
					文章分类
				</td>
				<td class="center">
					文章标题
				</td>
				<td class="center">
					作者
				</td>
				<td class="center">
					发布时间
				</td>
				<td class="center">
					修改时间
				</td>
				<td class="center">
					状态
				</td>
				<td>排序</td>
				<td class="center">
					相 关 操 作
				</td>
			</tr>
			<s:iterator value="pagingResult.currentPageList" status="rowstatus">
				<tr>
					<td class="center">
						<s:property value="dic_id_name" />
					</td>
					<td class="center">
						<s:property value="title" escape="false" />
					</td>
					<td class="center">
						<s:property value="author" />
					</td>
					<td class="center">
						<s:property value="publish_time" />
					</td>
					<td class="center">
						<s:property value="modify_time" />
					</td>
					<td class="center">
						<s:property value="state_name" />
					</td>
					<td>
						<input name="idList" type="hidden" value="<s:property value='id'/>" />
						<input style="width: 35px" type="text" name="orderList" value='<s:property value="orders"/>'/>
					</td>
					<td class="center">
						<a href="newsEdit.spage?news.id=<s:property value='id'/>">修改</a>
						&nbsp;&nbsp;&nbsp;&nbsp;
						<a href="newsDelete.spage?news.id=<s:property value='id'/>"
							onclick="return window.confirm('删除信息将无法恢复，是否删除！？');">删除</a>
					</td>
				</tr>
			</s:iterator>
			<tr>
				<td colspan="8">
					<s:property value='pagingResult.pagingHtml' escape="false" />
				</td>
			</tr>
		</table>
		<div style="text-align: center;">
			<input name="Submit" type="submit" value="保存排序" />
		</div>
		</s:form>
        <script type="text/javascript">
            var sysDictionary = new sysDictionary();
            cjyjs.form.FormPanel(
                {
                    name: "selectForm",
                    items: [
                        { name: "newsType", xtype: "select", xmlDataNode: sysDictionary.getNode("<s:property value='com.cjy.common.SysDictionaryType$INFORMATION@BASE'/>"), autoSearch: true, allLayer: true },

					{ name: "reset", xtype: "clear" },
					{ name: "submit", xtype: "button", validate: true }
				]
			}
		);
            cjyjs.effect.initTableList({ id: "tableList" });
		</script>
	</body>

</html>